<template>
    <div class="rule-box" v-show="props.isShow">
        <div :class="['rule-inner', 'dialog-inner', props.isShow && 'scale-in-center']">
            <img :src="assetsImageUrl + '/images/guide-icon.png'" alt="" class="rule_box_data">
            <div class="title">玩法说明</div>
            <div class="rule_content">
                <p>
                    点击骰子获得行动步数，在停留站点可随机获得不同奖励。
                </p>
            </div>
            <div class="footer">
                <div class="btn" role="button" @click="$emit('handleClose')">确&nbsp;&nbsp;认</div>
            </div>
        </div>
    </div>
</template>

<script setup>
import { ref } from "vue"

const assetsImageUrl = ref(import.meta.env.VITE_ASSETS_IMAGE_URL)
const props = defineProps({
    isShow: {
        type: Boolean,//类型字符串
        default: false//如果没有传递msg参数,默认值是这个
    },
})


</script>
<style lang="scss"  scoped>
.rule-box {
    position: fixed;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, .6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.rule-inner {
    width: 643px;
    height: 540px;
    position: relative;
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 60px;
}
.rule-box .title {
    margin-top: 0;
}
.rule_box_data {
    width: 350px;
}

.close-icon {
    position: absolute;
    right: 0;
    top: 0;
    transform: translateY(-130%);
    width: 52px;
    height: 52px;
}

.rule_content {
    color: #fff;
    font-family: "ChangAnunitype-Regular";
    font-size: 20px;
    padding: 0 50px;
}
.footer .btn {
  /* background: linear-gradient(180deg, #91d8ff, #4e81e9); */
  border-radius: 50px;
  width: 200px;
}
</style>